<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/12/11
  Time: 9:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <center>
        <form action="saveUserRole.do" method="post">
        <table border="1" rules="all">
            <<input type="hidden" name="id" value="${ub.id}">
            <tr align="center"><td colspan="100">
                <h1>正在给${ub.uname}用户分配角色</h1>
            </td></tr>
            <tr>
                <td>角色：</td>
                <td>
                    <select name="rb.rid">
                        <option value="-1">--请选择--</option>
                        <c:forEach var="r" items="${list}">
                            <option value="${r.rid}" ${ub.rb.rid==r.rid?'selected':''}>${r.rname}</option>
                        </c:forEach>
                    </select>
                </td>
            </tr>
            <tr align="center">
                <td colspan="100">
                    <input type="submit" value="保存"/>
                </td>
            </tr>
        </table>
        </form>
    </center>
</body>
</html>
